Lift the MOST_POSITIVE_FIXNUM/4 limitation on visited files (bug#8528).
authorEli Zaretskii <eliz@gnu.org>
Fri, 29 Apr 2011 19:47:29 +0000 (22:47 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 29 Apr 2011 19:47:29 +0000 (22:47 +0300)
commit91a41320cc420a6db11eb5f55b308af87a9f50b0
treed0268f3f256941646cb87eab64e54289525ac536
parentf3c7d5809755453c0fbc1a37c40cdeaa26d11c4e
Lift the MOST_POSITIVE_FIXNUM/4 limitation on visited files (bug#8528).

 src/fileio.c (Finsert_file_contents): Don't limit file size to 1/4
 of MOST_POSITIVE_FIXNUM.
 src/coding.c (coding_alloc_by_realloc): Error out if destination
 will grow beyond MOST_POSITIVE_FIXNUM.
 (decode_coding_emacs_mule): Abort if there isn't enough place in
 charbuf for the composition carryover bytes.  Reserve an extra
 space for up to 2 characters produced in a loop.
 (decode_coding_iso_2022): Abort if there isn't enough place in
 charbuf for the composition carryover bytes.
src/ChangeLog
src/coding.c
src/fileio.c